mybatis的#{}和${}的區別以及order by注入問題 前言略,直奔主題.. #{}相當於jdbc中的preparedstatement ${}是輸出變量的值 你可能說不明所以,不要緊我們看2段代碼: ResultSet rs = ...